package com.eternal.permission.entity.enums;

import com.baomidou.mybatisplus.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

/**
 * 角色类型 枚举
 * @author Eternal
 * @Title: RoleTypeEnum
 * @ProjectName notest
 * @Description: TODO
 * @date 2018/9/6 15:29
 */
public enum RoleTypeEnum implements IEnum {

    BASE("1","基础类型");

    private String roleType;
    private String describe;

    RoleTypeEnum(String roleType, String describe) {
        this.roleType = roleType;
        this.describe = describe;
    }

    @Override
    public Serializable getValue() {
        return  this.roleType;
    }

    @JsonValue
    public String getDescribe() {
        return describe;
    }
}
